<script type="text/javascript" >
<{include file='warehouse/area/js/index.js'}>
</script>
<link rel="stylesheet" type="text/css" href="/css/warehouse/area/index.css"/>
<div id="dialog" style="display:none;">
    <div class="info">
        <div class="validateTips" id="tips"></div>
        <form id="createForm" name="createForm">
            <div class="item">
                <span class="userInfoLeft"><{$lang.warehouse}>:</span>
					<span class="userInfoRight">
                    	<div id="div_warehouse_id">
                            <select name="warehouse_id" id="warehouse_id" class="text ui-widget-content"></select>
                        </div>
                    </span>

                <div style="clear: both;"></div>
            </div>
            <div class="item">
                <span class="userInfoLeft"><{$lang.area}><{$lang.name}>:</span>
                <span class="userInfoRight">
                    <input type="text" name="wa_name" id="wa_name" class="text ui-widget-content"/>
                </span>

                <div style="clear: both;"></div>
            </div>
            <div class="item">
                <span class="userInfoLeft"><{$lang.area}><{$lang.code}>:</span>
					<span class="userInfoRight">
                    	<div id="div_wa_code">

                        </div>
					</span>

                <div style="clear: both;"></div>
            </div>
            <div class="item">
                <span class="userInfoLeft"><{$lang.bind}><{$lang.directory}>:</span>
					<span class="userInfoRight">
                        <input type="checkbox" value="0" id="check_poc" name="check_poc" onclick="setpoc(this);">
					</span>
                <div style="clear: both;"></div>
            </div>
            <div class="item" id="OptionChoose" style="display: none">
                <span class="userInfoLeft"><{$lang.product}><{$lang.directory}>:</span>
					<span class="userInfoRight">
						<select name="poc_id" id="poc_id" class="text ui-widget-content">
                            <option value=""><{$lang.pls}></option>
                           <{section name="loop" loop=$OptionChoose}>
                            <option value="<{$OptionChoose[loop].poc_id}>"><{$OptionChoose[loop].poc_value}></option>
                            <{/section}>
                        </select>
					</span>
                <div style="clear: both;"></div>
            </div>
            <div class="item">
                <span class="userInfoLeft"><{$lang.application}><{$lang.type}>:</span>
					<span class="userInfoRight">
						<select name="wa_type" id="wa_type" class="text ui-widget-content">
                            <{foreach key=key item=item from=$typeText}>
                                <option value="<{$key}>"><{$item}></option>
                            <{/foreach}>
                        </select>
					</span>
                <div style="clear: both;"></div>
            </div>
            <div class="item">
                <span class="userInfoLeft"><{$lang.status}>:</span>
					<span class="userInfoRight">
						<select name="wa_status" id="wa_status" class="text ui-widget-content">
                            <option value="1"><{$lang.useable}></option>
                            <option value="0"><{$lang.unuseable}></option>
                        </select>
						<input type="hidden" name="wa_id" id="wa_id"/>
					</span>

                <div style="clear: both;"></div>
            </div>
        </form>
    </div>
</div>

<div id="setshelf_dialog" style="display:none;">
    <div class="item">
        <span class="userInfoLeft"><{$lang.area}><{$lang.name}>:</span>
          <span class="userInfoRight">
              <div id="div_wa_name"></div>          
          </span>

        <div style="clear: both;"></div>
    </div>
    <div class="item">
        <span class="userInfoLeft"><{$lang.ws_code}>:</span>
          <span class="userInfoRight">
              <div class="div_ws_code">
                  <ul id="div_ws_code"></ul>
              </div>              
          </span>

        <div style="clear: both;"></div>
    </div>
</div>


<div id="right_confirm" style="display: none;">
    <p style="text-align:center;font-size: 14px;color: red;font-weight: bold;">
        <{$lang.delete_sure}>？
    </p>
</div>


<div class="search_div">
    <div id="iTitle">
        <form id="sForm" name="sForm" onkeypress="if(event.keyCode==13){return false;}">
            <div style="padding:0">
                <{$lang.area}><{$lang.code}>：<input type="text" name="wa_code" id="wa_code" class="myInput" onkeyup="if(event.keyCode==13){submitsearch();}"/>
                &nbsp;&nbsp;<input type="button" onclick="submitsearch()" value="<{$lang.search}>" class="button"/>
                <input type="button" id="create" value="<{$lang.add}><{$lang.area}>" class="button"/>
            </div>
        </form>
    </div>
</div>
<div id="message"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="myTab">
    <tbody>
    <tr class="even-tr">
	    <th><{$lang.No}></th>
        <th><{$lang.area}><{$lang.name}></th>
        <th><{$lang.area}><{$lang.code}></th>
        <th><{$lang.product}><{$lang.directory}></th>
        <th><{$lang.application}><{$lang.type}></th>
        <th><{$lang.create}><{$lang.date}></th>
        <th><{$lang.last}><{$lang.edit}><{$lang.date}></th>
        <th><{$lang.status}></th>
        <th><{$lang.operation}></th>
    </tr>
    </tbody>
    <tbody id="loadListData"></tbody>
</table>
<div class="pagination"></div>     